import React from "react";
import {Button, message} from "antd";
import {PlusOutlined} from "@ant-design/icons";
import ProForm, {ModalForm, ProFormDateRangePicker, ProFormSelect, ProFormText} from "@ant-design/pro-form";
import Addserveritem from "@/pages/customerService/CustomerServiceList/components/addSeverItem";


const waitTime = (time: number = 100) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve(true);
    }, time);
  });
};

const Addserver = ()=>{
  return (
    <ModalForm
      title="添加客服"
      trigger={
      <Button type="primary">
        <PlusOutlined />
        添加客服
      </Button>
    }
      modalProps={{
      onCancel: () => console.log('run'),
    }}
      onFinish={ (values) => {
        console.log(values);
        message.success('提交成功');
      return true;
    }}
    >
      <Addserveritem />

    </ModalForm>
  )
}

export default Addserver;
